﻿namespace Jim.OA;

/// <summary>
/// 流程退回
/// </summary>
[Sdk("/api/workflow/paService/submitRequest",description:"流程退回")]
public class OASubmitRequestInput : OAUserRequest<SdkResponse>, ISdkCustomDic
{
    public List<OAWorkFlowField> MainData { get; set; }
    /// <summary>
    /// 明细表数据，例子请看注意事项,非必填
    /// </summary>
    public List<OAWorkflowRequestTable> DetailData { get; set; }
    public string Remark { get; set; }
    public string RequestId { get; set; }

    public SdkDictionary Dic()
    {
        SdkDictionary dic = new SdkDictionary();
        dic.Add("requestId", RequestId);
        dic.Add("remark", Remark);
        if (MainData != null) dic.Add("mainData", MainData);
        if (DetailData != null) dic.Add("detailData", DetailData);
        return dic;
    }
}